package trainfengxing.service.impl;

import trainfengxing.mapper.trainMapper;
import trainfengxing.pojo.train;
import trainfengxing.pojo.user;
import trainfengxing.service.trainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class trainServiceImpl implements trainService {
    @Autowired
    private trainMapper trainMapper;
    @Override
    public List<train> seat() {
        return trainMapper.seat();
    }

    @Override
    public List<user> userlogin() {
        return trainMapper.userlogin();
    }

    @Override
    public List<train> selecttrain(train train) {
        return trainMapper.selecttrain(train);
    }

    @Override
    public void deletetrain(train train) {
        trainMapper.deletetrain(train);
    }

    @Override
    public void updatetrain(train train) {
        trainMapper.updatetrain(train);
    }
}
